/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plash.display;

import plash.geom.Rectangle;

/**
 *
 * @author User
 */
public class Box extends DisplayObjectContainer
{
    private Rectangle _definition = new Rectangle(0, 0, 50, 50);
    
    public Box()
    {
        super();
    }
    
    private void _updateDrawing()
    {
        Graphics g = this.__graphics;
        
        g.clear();
//        g.setLineStyle(10, 0xCCCCCC, 1.0f);
        g.beginFill(0xCCCCCC, 0.4f);
        g.drawRectangle(_definition);
        g.endFill();        
    }

    public Rectangle getDefinition()
    {
        return _definition;
    }

    public void setDefinition(Rectangle _definition)
    {
        this._definition = _definition;
        _updateDrawing();
    }   
}
